﻿using Ss.Model;
using Vici.Mvc;
namespace web
{
    public class ClientSession : SessionBase
    {
        private readonly SessionProperty<User> _user = new SessionProperty<User>("User");
        /// <summary>
        /// 当前用户
        /// </summary>
        public User User
        {
            get { return _user.Value; }
            set { _user.Value = value; }
        }
        /// <summary>
        /// 用户是否在线
        /// </summary>
        public bool IsLogin
        {
            get { return (User != null); }
        }
    }
}